﻿using DtoFw.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DtoFw.Result
{
    public class EvidenceTransfereRespDto
    {
        public long Id { get; set; }
        public long? ApproveId { get; set; }
        /// <summary>
        /// 审核中  枚举 0 与1  当具备审核时，审核完成后，才能改变物品状态）
        /// </summary>
        public int? ApproveStatus { get; set; }
        /// <summary>
        /// 流转类别字典ID
        /// </summary>
        public long? DeliveryDicType { get; set; }
        /// <summary>
        /// 中文 (登记 入库 销毁 回库 送检  更换位置 等）
        /// </summary>
        public string DeliveryDicTypeName { get; set; } = string.Empty;
        /// <summary>
        /// 交接单号
        /// </summary>
        public string DeliveryNo { get; set; } = string.Empty;
        /// <summary>
        /// 流转时间
        /// </summary>
        public DateTime? DeliveryTime { get; set; }
        public long EvidenceId { get; set; }
        /// <summary>
        /// 物品数量
        /// </summary>
        public int? EvidenceQuantity { get; set; }
        /// <summary>
        /// 物品状态（已登记0、已入库1、已出库2
        /// </summary>
        public int? EvidenceStatus { get; set; }
        /// <summary>
        /// 1是0否
        /// </summary>
        public int? HistoryStatus { get; set; }
        public string Location { get; set; } = string.Empty;
        public long? LocationId { get; set; }
        /// <summary>
        /// 开柜状态
        /// </summary>
        public int? LocationStatus { get; set; }
        /// <summary>
        /// 存放时间
        /// </summary>
        public DateTime? LocationTime { get; set; }
        /// <summary>
        /// 经办人
        /// </summary>
        public string Operator { get; set; } = string.Empty;
        public string OperatorOrgan { get; set; } = string.Empty;
        public string OperatorOrganNo { get; set; } = string.Empty;
        public string OperatorPhone { get; set; } = string.Empty;
        public long? OperatorSignId { get; set; }
        /// <summary>
        /// 接收人
        /// </summary>
        public string Receiver { get; set; } = string.Empty;
        public string ReceiverOrgan { get; set; } = string.Empty;
        public string ReceiverOrganNo { get; set; } = string.Empty;
        public string ReceiverPhone { get; set; } = string.Empty;
        public long? ReceiverSignId { get; set; }
        public string Remark { get; set; } = string.Empty;
        /// <summary>
        /// 保存期限/回库时间
        /// </summary>
        public DateTime? ReturnTime { get; set; }
        /// <summary>
        /// 移交人
        /// </summary>
        public string Transferor { get; set; } = string.Empty;
        public string TransferorOrgan { get; set; } = string.Empty;
        public string TransferorOrganNo { get; set; } = string.Empty;
        public string TransferorPhone { get; set; } = string.Empty;
        public long? TransferorSignId { get; set; }
    }

    public class EvidenceTransferePostRespDto
    {
        public string DeliveryNo { get; set; }
        public List<EvidenceTransferePostResp> postResps { get; set; }
    }
    public class EvidenceTransferePostResp
    {
        public long TransfereId { get; set; }
        public long EvidenceId { get; set; }
    }
    public class EvidenceTransferePagerRespDto
    {
        public string DeliveryNo { get; set; }
        public DateTime? DeliveryTime { get; set; }
        public string Transferor { get; set; }
        public string TransferorPhone { get; set; }
        public string TransferorOrgan { get; set; } = string.Empty;
        public string Location { get; set; }
        /// <summary>
        /// 存放时间
        /// </summary>
        public DateTime? LocationTime { get; set; }
        public string Receiver { get; set; }
        public string Remark { get; set; }
        public long EvidenceId { get; set; }
        public long? DeliveryDicType { get; set; }
        public string DeliveryDicTypeName { get; set; }
        public long Id { get; set; }
        public EnumEvidenceStatus Status { get; set; }
        public string No { get; set; }

        public string Name { get; set; }
        /// <summary>
        /// 保存期限/回库时间
        /// </summary>
        public DateTime? ReturnTime { get; set; }
        public string ReceiverOrgan { get; set; } = string.Empty;
        public string ReceiverPhone { get; set; } = string.Empty;


    }


    public class TransfereEvidenceRespDto
    {
        public long CaseId { get; set; }
        public long EviId { get; set; }
        public long TranId { get; set; }
        public long? DeliveryDicType { get; set; }
        public string DeliveryDicTypeName { get; set; }
        public string TransfereNo { get; set; }
        public string EvidenceName { get; set; }
        public string EvidenceNo { get; set; }
        public int? EvidenceQuntity { get; set; }
        public string EvidenceShape { get; set; }
        /// <summary>
        /// 保管期限
        /// </summary>
        public DateTime? UsefulLife { get; set; }
        public string Describe { get; set; }
        public string ExtractionParts { get; set; }
        public DateTime? ExtractionDateTime { get; set; }
        public string ExtractionPersonName { get; set; }
        public string Source { get; set; }
        public string ExtractMethod { get; set; }
        /// <summary>
        /// 存放位置
        /// </summary>
        public string Location { get; set; }
        //之前存放的位置
        public string BeforeLocation { get; set; }

        public string Creator { get; set; }
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 交接时间
        /// </summary>
        public DateTime? DeliveryTime { get; set; }
        /// <summary>
        /// 回库时间
        /// </summary>
        public DateTime? ReturnTime { get; set; }

        public int? Status { get; set; }


        public string ReceiverOrgan { get; set; } = string.Empty;
        public string Receiver { get; set; }
        public string ReceiverPhone { get; set; } = string.Empty;



        public string Transferor { get; set; }
        public string TransferorPhone { get; set; }
        public string TransferorOrgan { get; set; }


        public string Remark { get; set; }
    }

    public class TransfereEvidenceTrendResDto
    {
        public List<TransfereEvidenceTrendRes> list { get; set; }
    }
    public class TransfereEvidenceTrendRes
    {
        public string time1 { get; set; }
        public string time2 { get; set; }
        public string title { get; set; }
        public string label { get; set; }
    }

    public class TransfereEvidencePostRespDto
    {
        public string DeliveryNo { get; set; }
        /// <summary>
        /// 签名
        /// </summary>
        public string SignImg { get; set; }
        /// <summary>
        /// 借调时间
        /// </summary>
        public string DeliveryTime { get; set; }

    }
}
